package day3;

import java.util.Scanner;

public class demo1 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        String str=scanner.nextLine();
        StringBuffer stringBuffer=new StringBuffer();
        char x=str.charAt(0);
        if (x>= 97 ){
            stringBuffer.append((char) (x- 32));
        }else {
            stringBuffer.append((char)x);
        }

        for (int i = 1; i <str.length() ; i++) {
if(str.charAt(i-1)==' '){
    if (str.charAt(i)>= 97 ){
        stringBuffer.append((char)(str.charAt(i) - 32));
    }else {
        stringBuffer.append((char)(str.charAt(i)));
    }
}
        }

        System.out.println(stringBuffer.toString());
    }



}
